// dlg.txt

begintalkscript;

variables;

short i;

begintalknode 1;
	state = -1;
	nextstate = -1;
	condition = get_sdf(29,1) == 0;
	question = "special";
	text1 = "This low, claustrophobia-inducing tunnel finally opens out into a large chamber. By now, you must be far underneath the huge lake at the west end of the Mera Fen. You imagine that you can sense the countless tons of water above you.";
	text2 = "The cavern is full of indistinct, shadowy shapes. Looking closer, you realize that it is equipment. Shaper equipment. All of it broken down and in the process of being scavenged for parts.";
	text3 = "You stop and listen carefully. In the distance, you can hear the sounds of working machinery. There is rumbling and the occasional sequence of controlled explosions. And chanting. And hissing.";
	text4 = "It sounds very familiar, although, when trying to figure out what you have discovered, it is hard to believe the inevitable conclusion.";
	text5 = "Someone has set up a Shaping laboratory here, well hidden in the Shadow Road. You could almost imagine yourself back in Isenwood's Spire. Someone is trying to make new creations here.";
	text6 = "And, based on what you have seen in the Shadow Road so far, whoever is working here, they have powerful defenses.";
	action = SET_SDF 29 1 1;

begintalknode 2;
	state = -1;
	nextstate = -1;
	condition = get_sdf(29,2) == 0;
	question = "special";
	text1 = "You look into the dim cavern off to the side and see iron spheres, each about five feet in diameter. They are Shaping vats. They aren't Shaper work. They're too crude. Still, it must have taken a lot of effort to get them here.";
	text2 = "They are all sealed shut, held closed by large steel bolts. When the creations within are ready, the hatches will open and they will emerge.";
	action = SET_SDF 29 2 1;

begintalknode 3;
	state = -1;
	nextstate = -1;
	condition = get_sdf(29,3) == 0;
	question = "special";
	text1 = "This is the entrance to the laboratory. There are two sets of huge stone doors. They are open now, but, in case of an emergency, they can be closed quickly. It's a standard precaution, even in a rogue operation like this one.";
	text2 = "Although you can hear machinery and smell the vinegary scent of raw essence, you don't hear any workers. You heard chanting before. No longer."; 
	action = SET_SDF 29 3 1;

begintalknode 4;
	state = -1;
	nextstate = -1;
	condition = get_sdf(29,4) == 0;
	question = "special";
	text1 = "This is a viewing chamber. When the application of magical energy warps a creation from a known variety into something new, it can be brought here and evaluated. The sort of energy applied and the resulting change are recorded.";
	text2 = "And then, most likely, the creation is destroyed. Even though this is a rebel operation, the harsh, time-tested techniques of the Shapers remain.";
	text3 = "As you inspect the area, you hear a click. A cell door to the southeast slowly opens, revealing hungry, hissing bugs. You are forced to confront a sample of the horrible work that is taking place here.";
	action = SET_SDF 29 4 1;
	code =
		set_attitude(24,10);
		set_attitude(25,10);
		set_attitude(26,10);
		if (gf(100,13) == 0)
			sf(100,13,1);
	break;
	
begintalknode 5;
	state = -1;
	nextstate = -1;
	condition = get_sdf(29,5) == 0;
	question = "special";
	text1 = "At the end of this corridor, you see the heart of this operation. It is the chamber where the new creations are made. A pool of swirling essence, caustic and charged with energy, swirls in the middle of the room.";
	text2 = "Energy flows into the chamber from the narrow corridor to the east, keeping the essence infused with power.";
	text3 = "Energy flowed into the chamber from the narrow corridor to the east, keeping the essence infused with power. Now that the power is gone, the pool will slowly lose its power over time.";
	text4 = "A skilled Shaper with the correct training can, from a safe distance, work that essence into creations and then direct the power to alter them. Through this process of creation, evaluation, and selection, the Shaper art is practiced.";
	action = SET_SDF 29 5 1;
	code =
		if (gf(29,6) > 0)
				rs(2);
				else rs(3);
	break;

begintalknode 6;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";
	
begintalknode 7;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";
	
begintalknode 8;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";
	
begintalknode 9; // machineryu
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "This piece of machinery is no longer functioning. Someone has been carefully salvaging components for later use.";

begintalknode 10;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Captain Hoyt";
	text1 = "This cell contains a human prisoner. If his robes are any indication, he is a mage. They are torn and filthy, but the shoulder still bears the barely visible insignia of a captain in the Shaper army.";
	text2 = "He is emaciated, unarmed, and exhausted. And yet, when he sees that you aren't one of his captors, he leaps to his feet. _What? Are you from the outside? Not one of the mad creatures here?_ You assure him that this is the case.";
	text3 = "He says, in a raspy voice, _Could this be a rescue? I didn't dare to dream of it. I am Captain Hoyt. I have been a prisoner here for ... I don't know. Months? It is good to have hope of seeing the sun again._";
	text5 = "Captain Hoyt sits quietly, concentrating and summoning up his energy. He also gnaws on a bit of stale bread crust he was saving for a special occasion like this.";
	action = INTRO;

begintalknode 11;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "How did you get here?";
	text1 = "_I was an infiltrator. I was sent from Haria-Kel into the Mera Fen. I was to spy on Gorash-Kel. It's an old fortress of the woods people, in the fen above us. We think that there are Unbound hiding there._";
	text2 = "_Then I was captured. I never even reached Gorash-Kel. I was blindfolded and brought here._";

begintalknode 12;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "How did they catch you?";
	text1 = "_There were serviles. Six of them. They were able to travel through the swamps. Quickly. They sighted me. And they knew magic!_";
	text2 = "_I couldn't outrun them, and I couldn't fight that many. They paralyzed me with their spells. They bound me and blindfolded me. When they uncovered my eyes, I was here._";

begintalknode 13;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "Are you the only one who was sent into the swamp?";
	text1 = "_I went alone, but I know that I'm not the only one sent on that mission. The serviles who questioned me told me that they caught others. They are here now._";
	text2 = "_I should try to rescue them before I go._";

begintalknode 14;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "What did they do to you when they got you here?";
	text1 = "He shudders and shakes his head. _I don't want to talk about it. I didn't tell them anything. But it cost me._";
	text2 = "";

begintalknode 15;
	state = 10;
	nextstate = -1;
	condition = gf(29,9) > 0;
	question = "What can you tell me about this place?";
	text1 = "He tells you what he knows. After all of the exploring you have done, none of it is news to you.";

begintalknode 16;
	state = 10;
	nextstate = 12;
	condition = gf(29,9) == 0;
	question = "What can you tell me about this place?";
	text1 = "_They have a Shaper here. Well, a drakon. Who can Shape. They are making something. Some sort of new creature. They want to release it into the Mera-Tev, so it can spread. And kill._";

begintalknode 17;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "What are they making?";
	text1 = "_I overheard one of the serviles calling it a shredbug. Sounds nasty. I haven't seen one, though._";

begintalknode 18;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "Why are they trying to do this?";
	text1 = "_I honestly don't know. I know Astoria was trying to have friendly relations with the rebels. She wants peace with them. And here they are making horrors in the middle of her land._";
	text2 = "_When she finds out what they have been doing in the Shadow Road, when she let them be here, she will be furious._";

begintalknode 19;
	state = 10;
	nextstate = 13;
	condition = 1;
	question = "What do you want?";
	text1 = "_I want to leave. I need to get back to Haria-Kel. I need to report what I have seen. Those are my orders. If you can tell me when the path out is clear and give me some directions to escape, I will be out of your way._";
	
begintalknode 20;
	state = 13;
	nextstate = -1;
	condition = gf(29,9) > 0;
	question = "Actually, I could use your help fighting the creatures here.";
	text1 = "He asks for details on the current situation. When he learns that the drakon is dead, he shrugs. _I don't think you need any help from me._";

begintalknode 21;
	state = 13;
	nextstate = -1;
	condition = get_stat(20) < 10 && gf(29,9) == 0 && gf(29,15) == 0;
	question = "Actually, I could use your help fighting the creatures here.";
	text1 = "He asks for details on the current situation. After some thought, he shakes his head. _I am sorry. I know that I should help. I want to help. However, I have a more important mission, and I need to conserve my strength for it._";
	text2 = "_Simply tell me when I can leave._";

begintalknode 22;
	state = 13;
	nextstate = 10;
	condition = get_stat(20) >= 10 && gf(29,9) == 0 && gf(29,15) == 0;
	question = "You can't leave yet. You need to help me destroy these rebels.";
	text1 = "He asks for details on the current situation. After some thought, he shakes his head. _I know. I have orders. I need to return and report, but ... You are right. The mad creatures here must be stopped._";
	text2 = "_Tell me when you are ready for me to follow you. I can only wait and help you once, though. Then I must return to Haria-Kel._";
	code =
		sf(29,15,1);
		award_party_xp(100,20);
	break;
	
begintalknode 23;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "The way out is clear. You can leave.";
	text1 = "You give directions to escape to the surface. Captain Hoyt nods. _I should have enough strength to make it, especially when you are making a distraction. Thank you for your help._";
	text2 = "He stands and prepares to leave.";
	action = END_TALK;
	code =
		sf(29,15,3);
	break;
	
begintalknode 24;
	state = 13;
	nextstate = 10;
	condition = 1;
	question = "I need to know something first.";
	text1 = "_What is it?_";

begintalknode 25;
	state = 10;
	nextstate = -1;
	condition = gf(29,15) == 1;
	question = "I am ready. Come with me.";
	text1 = "He stands. _Yes. Let us destroy these monsters who dare attack our fair land. I have little strength left, but it is all at your disposal._";
	action = END_TALK;
	code =
		sf(29,15,2);
	break;

begintalknode 26;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Stay here for now.";
	text1 = "He nods. _All right. Return soon. I am eager to return home._";
	action = END_TALK;

//

begintalknode 30;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "One of the creations guarding the laboratory sees you. It doesn't attack, at first. It looks at your chest. It spends several seconds staring at you, definitely looking for something. It doesn't see it.";
	text2 = "Then it attacks you.";

begintalknode 31;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "One of the creations guarding the laboratory sees you. It doesn't attack. It looks at your chest and sees the amulet you are wearing. Then it looks at you, confused. You aren't who it expected to see.";
	text2 = "You try to take advantage of this delay and calm down the creature. You try soothing words and hand motions, but you just can't establish the right level of control. The creature attacks.";

begintalknode 32;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "One of the creations guarding the laboratory sees you. It doesn't attack. It looks at your chest and sees the amulet you are wearing. Then it looks at you, confused. You aren't who it expected to see.";
	text2 = "You try to take advantage of this delay and calm down the creature. With soothing words and hand motions, you are able to calm it. It resumes guarding the tunnel.";

begintalknode 33;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "There are several serviles working in this laboratory. They are stunted, pale creatures, showing the signs of their long years of work underground.";
	text2 = "One of them looks at you and gives a long, angry hiss. You see that his face is covered with an elaborate pattern. It is an intricate mix of tattoos and scars, giving him an eerie, alien appearance.";
	text3 = "You hold up your passage amulet and show it to him. He snorts. He is smart enough to instantly see that you don't belong here.";
	text4 = "He holds up his hands and begins to mutter a spell. Sparks immediately start to arc from his fingers. The serviles here are not only odd, they're dangerous.";
	text5 = "And, if your being a servile makes them inclined to be merciful to you, you see no signs of it.";
	code =
		if (has_item_equip(376) == FALSE) 
			rs(3);
		if (creature_type(pc_num()) != 46) 
			rs(5);
	break;	
	

begintalknode 34;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "As you explore, an escaped creation sees you. As it approaches, you see no reason to worry. It looks like a beetle. It's about four feet long. A respectable size, to be sure, but it's still just an overgrown bug.";
	text2 = "Then you see how thick its carapace is. And how quickly and nimbly it moves despite its bulk. And then you see its pincers.";
	text3 = "When the bug gets near you, for a moment, you think that its pincers disappear. Then you realize that they are moving so fast that you can barely see them. They barely miss each other when they close, so there is no clicking sound.";
	text4 = "The pincers are fast, strong, and, you suspect, quite sharp. They look capable of shredding anything that gets between them. Clothes. Armor. Or your leg.";
	text5 = "You hold up your passage amulet and show it to the creature. It has no effect.";
	text6 = "Now you have a much better idea of what they are creating in this lab. One of these things looks nasty. If they can reproduce? And if they were released into the wild? It would be a disaster for the people on the surface.";
	code =
		if (gf(100,13) == 0)
			sf(100,13,1);
		if (has_item_equip(376) == FALSE) 
			rs(5);
	break;	

begintalknode 35;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";	

begintalknode 36;
	state = -1;
	nextstate = -1;
	condition = 1;
	question = "special";
	text1 = "__";	
	
//

begintalknode 50;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "Name";
	text1 = "You speak with one of the two prisoners in this cell. She is a small woman. You think that she was once quite stout, but months of near starvation in this dank chamber have been very hard on her.";
	text2 = "She looks up at you and rasps, _What? Who are you? I am Brawne ... of the ... of the ... I am a prisoner._ She points at the insignia on her shoulder. She is a soldier of the Shaper army.";
	text5 = "Brawne rests on her filthy pallet, trying to conserve what little strength she has left.";
	action = INTRO;

begintalknode 51;
	state = -1;
	nextstate = 50;
	condition = 1;
	question = "";
	text1 = "You speak with one of the two prisoners in this cell. He is an elderly man. You are surprised that he has survived what has obviously been a long confinement. He seems barely coherent.";
	text2 = "He mumbles, _You don't ... don't look like rebels. I ... Silenus. Power ... so little power. Some left. Deep within. Escape. Want to escape._";
	text5 = "Silenus sits with his back to the wall and rambles aimlessly. It is pitiful to see a once-powerful mage reduced to this.";
	action = INTRO;

	
begintalknode 52;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "Tell me how you got here.";
	text1 = "The response you get is fragmentary and incoherent. It seems to involve a mission in the Mera swamp. You can't determine what this mage was trying to do or how it ended.";
	text2 = "Hoyt says, _They were probably on the same miserable errand as me. They just had the bad luck to be sent and captured before me._";
	code =
		if (gf(29,17) == 0)
			rs(2);
	break;
	
begintalknode 53;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "Tell me what they are doing here.";
	text1 = "_Shaping ... Shaping ... I ... I saw them! Saw the shredbugs! They ... Aaaaaagh._ The pitiful creature turns to face the wall, terrified.";
	text2 = "Hoyt shrugs. _They learned about as much as I did._";
	code =
		if (gf(29,17) == 0)
			rs(2);
	break;
	
begintalknode 54;
	state = 50;
	nextstate = -1;
	condition = gf(29,17) == 0;
	question = "The way is clear. You can escape.";
	text1 = "You don't think that your words got through. You get no response. This person seems to be out of strength.";
	
begintalknode 55;
	state = 50;
	nextstate = -1;
	condition = gf(29,17) == 0;
	question = "I am going to attack the laboratory. I need your help.";
	text1 = "The mage looks up at you with unfocused eyes. Your attempts at a pep talk get no response.";

	
begintalknode 56;
	state = 50;
	nextstate = -1;
	condition = gf(29,17) > 0;
	question = "The way is clear. You can escape.";
	text1 = "You don't think that your words got through. You get no response. This person seems to be out of strength. Then Hoyt steps in.";
	text2 = "He hauls the two mages to their feet and looks in their eyes. One at a time, he mutters to them. The words are indistinct. It is a focusing chant, used to calm the mind and summon up the last reserves of power.";
	text3 = "With great effort, he bullies them back to consciousness. Then he describes the route out. _You have a mission to complete. Live up to your position and rank. Go._";
	text4 = "You watch, amazed, as the mages hobble out of the cell. They seem restored enough to make you think they might actually make it.";
	action = END_TALK;
	code =
		sf(29,16,3);
	break;
	
begintalknode 57;
	state = 50;
	nextstate = -1;
	condition = gf(29,17) > 0;
	question = "I am going to attack the laboratory. I need your help.";
	text1 = "You don't think that your words got through. You get no response. This person seems to be out of strength. Then Hoyt steps in.";
	text2 = "He hauls the two mages to their feet and looks in their eyes. One at a time, he mutters to them. The words are indistinct. It is a focusing chant, used to calm the mind and summon up the last reserves of power.";
	text3 = "With great effort, he bullies them back to consciousness. Then he describes what is going on. _They are making monsters. They will unleash them onto our people. We're the only ones who can stop them. Die if you must, but help us first._";
	text4 = "You watch, amazed, as the mages struggle to their feet and prepare to follow you. They seem restored enough to make you think they might actually be of use.";
	action = END_TALK;
	code =
		sf(29,16,2);
	break;

begintalknode 58;
	state = 50;
	nextstate = -1;
	condition = 1;
	question = "Just stay here.";
	text1 = "You walk away. The depleted creature doesn't even notice you depart.";
	text2 = "Hoyt says, _We can't just leave them here. I can help to rouse them, but we mustn't forget them._";
	action = END_TALK;
	code =
		if (gf(29,17) == 0)
			rs(2);
	break;

//

begintalknode 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode 71;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

//

begintalknode 90;
	state = -1;
	nextstate = 90;
	condition = 1;
	question = "Name";
	text1 = "The soldier looks at you expectantly. _What is it?_";

begintalknode 91;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "I don't need any more help. I will travel alone from here on.";
	text1 = "_All right. I wish you safe travels. I will return to Haria-Kel and say what I have learned._";
	action = END_TALK;
	code =	
		if (gf(29,15) == 2)
			sf(29,15,3);
		if (gf(29,16) == 2)
			sf(29,16,3);
	break;
	
begintalknode 92;
	state = 90;
	nextstate = -1;
	condition = 1;
	question = "Never mind. Just stay with me.";
	text1 = "The warrior mage nods.";
	action = END_TALK;

// crystal machine

begintalknode 110;
	state = -1;
	nextstate = 110;
	condition = 1;
	question = "Name";
	text1 = "A constant flow of energy is sent from the chamber to the east into here. This machine collects the power, directs it into a crystal in its center, and then sends the focused power into the essence pool.";
	text2 = "At least, that is what happened before. Now that the crystal has been removed, the power simply escapes in all directions. This room is very warm now.";
	text3 = "The focusing crystal looks like a valuable piece of machinery. It would be worth a lot to the right person. Removing it, however, might have unpredictable effects.";
	code =
		if (gf(29,6) == 0)
			rs(2);
			else rs(3);
	break;
	
begintalknode 111;
	state = 110;
	nextstate = -1;
	condition = gf(29,6) == 0 && get_stat(21) >= 8;
	question = "Steal the crystal.";
	text1 = "You pick up a pair of gauntlets, put them on, and remove the hot crystal from the device. You take it out slowly and carefully, ignoring the heat and the pain. You manage to prevent any quick, instability-causing breaks in the flow.";
	text2 = "You are successful. The crystal is yours, and the power flow into the pool is dramatically reduced.";
	action = END_TALK;
	code =
		sf(29,6,1);
		set_spec_item(38,1);
	break;
	
begintalknode 112;
	state = 110;
	nextstate = -1;
	condition = gf(29,6) == 0 && get_stat(21) < 8;
	question = "Steal the crystal.";
	text1 = "You pick up a pair of gauntlets, put them on, and remove the hot crystal from the device. The heat begins to sear your arms. You yank the crystal out quickly, abruptly breaking the energy flow.";
	text2 = "The crystal is yours, and the power flow into the pool is dramatically reduced. However, the sudden instabilities in the power have an effect. Some of the unleashed power enters the pool. The essence reacts ...";
	action = END_TALK;
	code =
		sf(29,6,1);
		set_spec_item(38,1);
		activate_hidden_group(1);
		set_level(30,25);
		set_level(31,25);
		set_level(32,25);
		set_level(33,25);
		set_level(34,25);
		set_name(33,"Destabilizing Shade");
		set_name(34,"Destabilizing Shade");
		set_new_abil(30,15);
		set_new_abil(31,15);
		set_new_abil(32,15);
		set_new_abil(33,13);
		set_new_abil(34,13);
	break;

begintalknode 113;
	state = 110;
	nextstate = -1;
	condition = 1;
	question = "Leave the device alone.";
	text1 = "You keep a safe distance from this powerful and unpredictable machinery.";
	action = END_TALK;

	
	// main control

begintalknode 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = "There is a tall, glowing crystal spire in the southeast corner of the room. It sends power into the conduits, through these control panels, and out of the room to the north. Perhaps to the chambers of Shaping vats you saw earlier.";
	text2 = "This control creature is linked to the passing conduit. It is the only way you have seen so far to interact with the Shaping vats. The controls are very simple. It has two switches.";
	text3 = "One of them says, _Release._ The others says, _Emergency purge._";


begintalknode 131;
	state = 130;
	nextstate = -1;
	condition = gf(100,13) < 2 && gf(29,18) == 0;
	question = "Press the 'Release' switch.";
	text1 = "One of the disadvantages of trying to run a laboratory in this damp, remote setting is that you can't afford many of the luxuries the Shapers take for granted. Like, for example, safety mechanisms for the controls.";
	text2 = "Nothing prevents you from flipping the switch. The control creature lets out a little squeak. Then it sends a surge of power through the conduits to the Shaping vats.";
	text3 = "Moments later, the halls are filled with a cacophony of echoing squeals as the vats open. They disgorge their deadly inhabitants, who fan out looking for prey. Some stay near the vats. Others immediately head for the exit and the larger world beyond.";
	text4 = "The shredbugs have been released. A new creation has been unleashed upon the world. The Mera-Tev is about to become a much more dangerous place.";
	action = END_TALK;
	code =
		sf(100,13,2);
		award_party_xp(200,20);
		i = 52;
		while (i <= 79) {
			spawn_creature(i - 8);
			set_aggression(i,9);
			set_attitude(i,11);
			
			i = i + 1;
			}
	break;
	
begintalknode 132;
	state = 130;
	nextstate = -1;
	condition = gf(100,13) < 2 && gf(29,18) == 0;
	question = "Press the 'Emergency purge' switch.";
	text1 = "One of the disadvantages of trying to run a laboratory in this damp, remote setting is that you can't afford many of the luxuries the Shapers take for granted. Like, for example, safety mechanisms for the controls.";
	text2 = "Nothing prevents you from flipping the switch. The control creature lets out a little squeak. Then it sends an intense surge of power through the conduits to the Shaping vats.";
	text3 = "Moments later, the halls are filled with a cacophony of echoing shrieks as the vats open. Acrid smoke begins to fill the complex. The emergency mechanism to destroy the new creations in case of disaster works as intended.";
	text4 = "The shredbugs aren't immediately killed, but they will be dead soon. The Mera-Tev has been spared a new nightmare.";
	action = END_TALK;
	code =
		sf(29,18,1);
		award_party_xp(200,20);
		i = 52;
		while (i <= 79) {
			spawn_creature(i - 8);
			set_aggression(i,9);
			set_name(i,"Diseased Shredbug");
			set_attitude(i,11);

			i = i + 1;
			}
	break;

begintalknode 133;
	state = 130;
	nextstate = -1;
	condition = gf(100,13) >= 2 || gf(29,18) > 0;
	question = "Press the 'Release' switch.";
	text1 = "You press the switch. The control creature makes an irritated squeaking noise. Nothing else happens.";
	
begintalknode 134;
	state = 130;
	nextstate = -1;
	condition = gf(100,13) >= 2 || gf(29,18) > 0;
	question = "Press the 'Emergency purge' switch.";
	text1 = "You press the switch. The control creature makes an irritated squeaking noise. Nothing else happens.";
	
begintalknode 135;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "Leave the controls alone.";
	text1 = "This situation seems full of potential disaster. You leave the control creature alone.";
	action = END_TALK;
	
begintalknode 136;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 137;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";
	
begintalknode 138;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "";
	text1 = ".";
	text2 = "";

// 150

begintalknode 150;
	state = -1;
	nextstate = 150;
	condition = 1;
	question = "Pyhroviass";
	text1 = "The master of this complex has managed to track you down. He lumbers into the chamber, eyes glowing and smoke pouring out of his mouth. He is a drakon, a member of the mightiest and most cunning breed of creation.";
	text2 = "He towers above you, a pillar of reptilian bone and muscle. Like many of his kind, he has the innate power to Shape creations to aid him. That he has not already begun to generate servants means only that he wishes to toy with you first.";
	text3 = "_I am Pyhroviass, little one. I am master here. You are an intruder. You have spent much effort getting to this point. Do you wish to know what you have died for?_";


begintalknode 151;
	state = 150;
	nextstate = 151;
	condition = 1;
	question = "What are you making here?";
	text1 = "The drakon beams with pride. _I have made a new creation. Once, it was thought that only Shapersss can do thisss. Now drakonsss are mastering their art._";
	text2 = "_I have created the shredbug. A pest. A nightmare. It will leave, and spread, and dine on those who dared to oppose the rebellion._";
	
begintalknode 152;
	state = 151;
	nextstate = -1;
	condition = 1;
	question = "Why are you attacking the Mera-Tev?";
	text1 = "_Councilor Astoria is trying to make peace with the rebelsss. Some of the weaker alliesss of the drakonsss are listening. My kind, however, knowsss that only total destruction of the Shapers will bring victory._";
	text2 = "_The northern rebelsss will not attack the Mera-Tev, so I was sent here. I will destroy these lands from within._";

begintalknode 153;
	state = 151;
	nextstate = -1;
	condition = 1;
	question = "Why are the shredbugs so dangerous?";
	text1 = "_They are fast. Hardy. Visciousss. And they breed quickly. Once they are free, they will spread. They will never be wiped out. They will teach all of the deadly power a Lifecrafter can wield._";
	
begintalknode 154;
	state = 151;
	nextstate = -1;
	condition = 1;
	question = "Are the shredbugs the only creation your kind has made?";
	text1 = "_We have made many! We made the podlingsss. We made ourselvesss! The drakons only gained such power by reShaping ourselvesss! We made our own Geneforgesss._";
	text2 = "_We used tricksss and artsss that the Shapersss did not, and we are great because of it!_";
	
begintalknode 155;
	state = 151;
	nextstate = 150;
	condition = 1;
	question = "I want to know something else.";
	text1 = "_I have said much of what I wished to. It felt good to boast of my successesss. It is coming time to finish._";
	
begintalknode 156;
	state = 150;
	nextstate = -1;
	condition = has_item_equip(376);
	question = "Don't attack me! I have this! (Show the passage amulet.)";
	text1 = "_You think I care for that trinket? I should destroy you this moment for such an insult._";
	
begintalknode 157;
	state = 150;
	nextstate = -1;
	condition = gf(100,5) == 2;
	question = "I am working for Ghaldring. I serve the drakons.";
	text1 = "Pyhroviass isn't sure whether to believe you. Then he looks at your equipment. _Even if what you say is true, none will ever know that I slew you. Your belongings will add greatly to my hoard._";
	text2 = "_Anyway, you only deserve to fight with usss if you are strong enough to protect yourself._";
	
begintalknode 158;
	state = 150;
	nextstate = -1;
	condition = 1;
	question = "Please don't kill me! I beg you!";
	text1 = "_Oh, all right. I am moved by your pitiful display. Simply set your weapon down and rest. I will make your end quick. Anyway, we all have to die some time, do we not?_";
	text2 = "The drakon advances upon you.";
	action = END_TALK;
	
begintalknode 159;
	state = 150;
	nextstate = -1;
	condition = 1;
	question = "I will destroy you, monster.";
	text1 = "_Yesssss ... an honorable fight. I tire of winning our victories from a cave, improving bugs instead of being in gloriousss battle. This fight will be my reward for yearsss of labor._";
	text2 = "The drakon advances upon you.";
	action = END_TALK;
